package com.jinpeng.common.controller;

import com.jinpeng.system.domain.UserToken;
import org.springframework.stereotype.Controller;
import com.jinpeng.common.utils.ShiroUtils;
import com.jinpeng.system.domain.UserDO;

@Controller
public class BaseController {
    public UserDO getUser() {
        return ShiroUtils.getUser();
    }

    public Long getUserId() {
        return getUser().getUserId();
    }

    public String getUsername() {
        return getUser().getUsername();
    }
}